Skip to main content

mergAVPick

Type

function

Summary

Picks a video from a recording or the library and saves it in the temporary folder and returns the file path

Syntax

mergAVPick([<pSource>], [<pQuality>], [<pDuration>], [<pIncludeVideo>], [<pIncludePhoto>], [<pPopoverRect>], [<pOriginalImage>])

Description

iOS Only.

Parameters

NameTypeDescription

pSource

(optional with "camera" default) the source of the video which will be one of:

  • library
  • album
  • camera
  • rear camera
  • front camera

pQuality

(optional with "medium" default) the quality of the video

  • high : iOS 3.1+
  • medium : iOS 3.1+
  • low : iOS 3.1+
  • 640x480 : iOS 4.0+
  • 1280x720 : iOS 5.0+
  • 960x540 : iOS 5.0+

pDuration

(optional with 600 default) The maximum duration of the video

pIncludeVideo

(optional with "true" default) Allow the user to pick video.

  • true
  • false

pIncludePhoto

(optional with "false" default) Allow the user to pick photo's.

  • true
  • false

pPopoverRect

(optional with "" default) The rect to display the popover from if picking an existing video or photo. If not specified the target rect will be used.

pOriginalImage

(optional with "false" default) (iOS8 only) This option is for picking images from the library where you want the original image data rather than the image that iOS normally gives us from the image picker.

  • true
  • false

Examples

put mergAVPick("library","medium",180) into tVideoPath
put mergAVPick("front camera","low") into tVideoPath

Compatibility and Support

Introduced

LiveCode 8.0

OS

ios

mac

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?